package com.hy.controller;

import com.hy.service.NewInformationService;
import com.hy.service.impl.NewInformationServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class NewInformationController {
    private NewInformationService newInformationService = new NewInformationServiceImpl();

    public void queryRecentlyInterestMe(HttpServletRequest request, HttpServletResponse response) throws Exception {
        newInformationService.listRecentlyInterestMe(request,response);
    }

    public void queryLikesMy(HttpServletRequest request, HttpServletResponse response) throws Exception {
        newInformationService.listLikesMy(request,response);
    }
}